<template lang="pug">
.content
  .container-fluid
    .row
      md-card(title='设备列表', category='已经注册的设备列表，只允许这些设备可以成功连接', backgroundColor='blue')
        pagina-table(apiUrl="/ysj/all" :columns='columns' :titles='titles')
      md-button.btn.btn-primary.pull-right.btn-round(href='#/devices/add') 添加设备
      .clearfix
</template>

<script>
import PaginaTable from '@/components/PaginaTable'

export default {
  name: 'dashboard',
  components: {
    PaginaTable
  },

  data() {
    return {
      columns: ['iccid', 'user:user-link', 'address', 'installAt:DateText', 'misc', ':DeviceDeleteButton'],
      titles: ['ICCID', '用户名', '地址', '安装日期', '备注', '操作']
    }
  }
}
</script>
